import request from '@/utils/request'

// 提单列表
export function listCustomsAffairs(data) {
  return request({
    url: '/customs_affairs/listCustomsAffairs',
    method: 'post',
    data
  })
}
// 提单新增
export function createCustomsAffairs(data) {
  return request({
    url: '/customs_affairs/createCustomsAffairs',
    method: 'post',
    data
  })
}
// 提单编辑
export function updateCustomsAffairs(data) {
  return request({
    url: '/customs_affairs/updateCustomsAffairs',
    method: 'post',
    data
  })
}
// 提单废弃
export function delCustomsAffairs(data) {
  return request({
    url: '/customs_affairs/delCustomsAffairs',
    method: 'post',
    data
  })
}
// 航班列表
export function listFlight(data) {
  return request({
    url: '/flight/listFlight',
    method: 'post',
    data
  })
}
// 航班列表新增
export function createFlight(data) {
  return request({
    url: '/flight/createFlight',
    method: 'post',
    data
  })
}
// 航班列表编辑
export function updateFlight(data) {
  return request({
    url: '/flight/updateFlight',
    method: 'post',
    data
  })
}
// 航班列表删除
export function delFlight(data) {
  return request({
    url: '/flight/delFlight',
    method: 'post',
    data
  })
}

// 获取一个提单中指定的承运商的订单运单号数据
export function listWaybillNo(data) {
  return request({
    url: '/customs_affairs/listWaybillNo',
    method: 'post',
    data
  })
}
// 合并
export function createMergeCode(data) {
  return request({
    url: '/customs_affairs/createMergeCode',
    method: 'post',
    data
  })
}
